import {NgModule} from '@angular/core';
import {SharedModule} from '../../../shared/shared.module';
import {NoticeRoutingModule} from './notice-routing.module';
import {NoticeListComponent} from './notice-list/notice-list.component';
import {NoticeEditComponent} from './notice-edit/notice-edit.component';
import {QuillModule} from 'ngx-quill';

@NgModule({
  declarations: [
    NoticeListComponent,
    NoticeEditComponent
  ],
  imports: [
    SharedModule,
    NoticeRoutingModule,
    QuillModule.forRoot(
      {
        modules: {
          syntax: false,
          toolbar: [
            ['bold', 'italic', 'underline', 'strike'],        // 切换按钮
            ['blockquote', 'code-block'],

            [{'header': 1}, {'header': 2}],               // 用户自定义按钮值
            [{'list': 'ordered'}, {'list': 'bullet'}],
            [{'script': 'sub'}, {'script': 'super'}],      // 上标/下标
            [{'indent': '-1'}, {'indent': '+1'}],          // 减少缩进/缩进
            [{'direction': 'rtl'}],                         // 文本下划线

            [{'size': ['small', false, 'large', 'huge']}],  // 用户自定义下拉
            [{'header': [1, 2, 3, 4, 5, 6, false]}],

            [{'color': []}, {'background': []}],          // 主题默认下拉，使用主题提供的值
            [{'font': []}],
            [{'align': []}],
            ['clean'],                                         // 清除格式
            ['link', 'image', 'video'],                        // link and image, video
          ]
        }
      }
    )
  ]
})
export class NoticeModule {
}
